package com.weixing.mall.provider.model.dto;

import com.weixing.mall.base.enums.IsEnableEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName PhotoAlbumDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/8/7
 * @Version 1.0
 **/
@Data
@ApiModel(description = "相册")
public class PhotoAlbumDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "相册名称")
    @NotNull(message = "相册名称不能为空")
    private String albumName;

    @ApiModelProperty(value = "相册封面")
    private String albumCover;

    @ApiModelProperty(value = "相册描述")
    private String albumDesp;

    @ApiModelProperty(value = "是否可用 0禁用；1可用")
    @NotNull(message = "是否可用不能为空")
    private IsEnableEnum isEnable;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer orderBy;
    @ApiModelProperty(value = "层级")
    @NotNull(message = "层级不能为空")
    private Integer albumLevel;
    @ApiModelProperty(value = "父节点，如果层级为1，父节点不用传参")
    private Long  parentId;
}
